﻿@using Janus.Mes.WebClient;
@using Janus.BaseEntitys;
@using Janus.Mes.VO;
@model CraftRouteHVO
@{
    Layout = null;
    ViewBag.ViewTitle = "工艺路线";
}

<div class="pageContent">
    <form method="post" action="Manufacturing/Order/create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageFormContent" layouth="56">
            <input id="hidIsCreate" name="hidIsCreate" type="hidden" value="@ViewBag.IsCreate" />
            @Html.HiddenFor(model => model.Id)
            <p>
                <label>
                    工艺路线码：
                </label>
                @Html.TextBoxFor(c => c.CraftRCode, new { @class = "required IsExisted" })
                @Html.ValidationMessageFor(c => c.CraftRCode)
            </p>
            <p>
                <label>
                    版本：
                </label>
                @Html.TextBoxFor(c => c.Version, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.Version)
            </p>
            <p>
                <label>
                    生效日期：
                </label>
                @Html.TextBoxFor(c => c.ValidDate, new { @class = "required date ", formatDate="yyyy-MM-dd" })
                @Html.ValidationMessageFor(c => c.ValidDate)
            </p>
            <p>
                <label>
                    工艺员：
                </label>
                @Html.TextBoxFor(c => c.Crafter, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.Crafter)
            </p>
            <p>
                <label>
                    料号：
                </label>
                @Html.TextBoxFor(c => c.InvCode, new { @class = "required" })
                @Html.ValidationMessageFor(c => c.InvCode)
            </p>
            <p>
                <label>
                    品名规格：
                </label>
                <input id="InvNameAndStd" name="InvNameAndStd" class="inputText readonly" type="text" />
            </p>
            <p>
                <label>
                    默认工艺：
                </label>
                @Html.TextBoxFor(c => c.IsDefault, new { @class = "" })
                @Html.ValidationMessageFor(c => c.IsDefault)
            </p>
            <p>
                <label>
                    启用：
                </label>
                @Html.TextBoxFor(c => c.IsEnable)
                @Html.ValidationMessageFor(c => c.IsEnable)
            </p>
            <p>
                <label>
                    工艺路线描述：
                </label>
                @Html.TextBoxFor(c => c.CraftRDesc, new { style = "width:80%;height:30px;" })
                @Html.ValidationMessageFor(c => c.CraftRDesc)
            </p>
            <p>
                <label>
                    备注：
                </label>
                @Html.TextBoxFor(c => c.Remark, new { style = "width:80%;height:30px;" })
                @Html.ValidationMessageFor(c => c.Remark)
            </p>
            @Html.Partial("Operation", Model)
        </div>
        @Html.Partial("FormButtonBar")
    </form>
</div>

